<!DOCTYPE HTML>  
<html>
<head>
<meta charset="utf-8">
<title>savenote</title>
</head>

<body>

<!---<cftry>--->

<cfset paramid    = form.argcurrentid />          

<cfset myArr = ArrayNew(1)>

<cfset myArr = ListToArray( paramid , "~", "true") />

<cfset foldercode = Trim(myArr[1])>
<!---<cfset notesid    = Trim(myArr[2])>--->
<!---<cfset theaction  = Trim(myArr[3])>--->
<cfset thecaption = Trim(myArr[4])>


	<cfset theUUID = createuuid() />
    <cfset aa      = '#DateFormat(Now(), "yyyy-mm-dd")#'>
	<cfset bb      = '#TimeFormat(Now(), "HH:MM:SS")#'>
    <cfset theDay  = '#aa# #bb#'>
	<cfquery name="updateNote" datasource="#client.company_dsn#">
    
        INSERT INTO ECRGCOLLABTHREAD ( FOLDERCODE, COLLABCODE, SUBJECT, DATECREATED )
            VALUES( '#foldercode#', '#theUUID#', '#thecaption#',  '#theDay#');
    
    </cfquery>

    
<!---    
<cfcatch>
    
        <cfoutput>#cfcatch.Message#</cfoutput>
    
    </cfcatch>

</cftry>--->


</body>
</html>
